package com.fla.shapeevader.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import android.graphics.Color;
import android.util.DisplayMetrics;

public class GameModel {
    public enum GameMode {
        MAIN, RUSH
    };

    private List<BaseShape> shapes;

    private BaseShape userShape;

    public GameModel(GameMode mode, DisplayMetrics displayMetrics, int gameViewWidth, int gameViewHeight) {
        shapes = new ArrayList<BaseShape>();
    }

    public void generateShapesFor(int levelNumber) {

    }

    public void speedUp() {

    }

    private int generateColor(int index) {
        switch (index) {
            case 1:
                return Color.RED;
            case 2:
                return Color.YELLOW;
            case 3:
                return Color.MAGENTA;
            case 4:
                return Color.GREEN;
            case 5:
                return Color.BLUE;
            case 6:
                return Color.CYAN;
            case 7:
                return Color.LTGRAY;
            default:
                Random random = new Random();
                return Color.rgb(random.nextInt(256), random.nextInt(256), random.nextInt(256));
        }
    }
}
